package month3.day29;

public class Keji extends Feiji {
    private int zuowei;
    private  int zaike;

    public Keji(int zizhong, int feixnggaodu, int zuowei, int zaike) {
        super(zizhong, feixnggaodu);
        this.zuowei = zuowei;
        this.zaike = zaike;
    }

    public int getZuowei() {
        return zuowei;
    }

    public void setZuowei(int zuowei) {
        this.zuowei = zuowei;
    }

    public int getZaike() {
        return zaike;
    }

    public void setZaike(int zaike) {
        this.zaike = zaike;
    }
    public void show(){
        super.show();
        System.out.println("，座位数："+zuowei+"，载客数："+zaike);
    }

    public void qifei(){
        System.out.print("载客");
        super.qifei();
    }
    public void jiangluo(){
        System.out.print("到达目的地，");
        super.jiangluo();
    }
}
